package com.unknow.first.dapp.admin.account.constants;

import com.unknow.first.dapp.admin.account.mapper.AddressCoinConfig;

public interface ICoinTypeEnum {

    int getId();     // 值

    String getName();  // 名称和描述

    String getSymbol();  // 币种符号

    default AddressCoinConfig getAddressCoinConfig() {
        AddressCoinConfig coinConfig = new AddressCoinConfig();
        coinConfig.setCoinId(getId());
        coinConfig.setCoinName(getName());
        coinConfig.setCoinSymbol(getSymbol());
        return coinConfig;
    }
}
